home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / progjour / 1991 / 06 / alib / getvecto.asm < prev    next >
Assembly Source File  |  1991-06-25  |  316b  |  29 lines

  1.     include    asm.inc
  2.  
  3.     public    get_vector
  4.  
  5.     .code
  6.  
  7. ;;    get vector
  8. ;
  9. ;    entry    AL    vector #
  10. ;    exit    DS:SI    selected vector
  11. ;        Zf    if null vector
  12. ;    uses    AX
  13. ;
  14. get_vector proc
  15.     mov    ah,0
  16.     add    ax,ax
  17.     add    ax,ax
  18.     xchg    ax,si
  19.     xor    ax,ax
  20.     mov    ds,ax
  21.     lds    si,[si]
  22.     mov    ax,ds
  23.     or    ax,si
  24.     ret
  25. get_vector endp
  26.  
  27.  
  28.     end
  29.